package com.ssy.lingxi.platform.manage.job;

import com.ssy.lingxi.platform.manage.service.ISensitiveWordService;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 重构敏感词缓存
 * @author yzc
 * @version 2.0.0
 * @date 2021/1/14
 */
@EnableScheduling
@Component
public class SensitiveWordJob {

    @Resource
    private ISensitiveWordService sensitiveWordService;


    @Scheduled(cron = "0 0/30 * * * ?")
    public void reInit(){
        sensitiveWordService.initSensitiveWord();
    }

}
